package com.huluobo.sign

import com.huluobo.lib_base.Res
import com.huluobo.sign.entity.SignBean
import kotlinx.coroutines.flow.Flow
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

/**
 *  Created by LC on 2025/2/7.
 */
interface ApiService {
    @GET("/api/clock/page")
    fun getSigns(@Query("page") page: String, @Query("limit") limit: String): Flow<Res<SignBean>>

    @POST("/api/clock/save")
    fun addSign(@Body requestBody: RequestBody): Flow<Res<String?>>
}